package com.hy.demo.learn.thread;

import java.util.concurrent.Callable;

/**
 * <p>
 *
 * </p>
 *
 * @author cjl
 * @version 1.0
 * @since 2020-07-29 15:02
 */
public class CallableDemo implements Callable<String> {
    @Override
    public String call() throws Exception {
        String value="Han Pi";

        System.out.println("Ready To Work");
        Thread.sleep(5000);


        System.out.println("Work Is Done");
        return value;
    }
}
